cmake_minimum_required(VERSION 3.0.0)
project(redis_list)

aux_source_directory(${PROJECT_SOURCE_DIR} SOURCE_DIR)

#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")

add_executable(redis_list 
${SOURCE_DIR}
)

target_include_directories(redis_list PUBLIC "/usr/include/mysql")
target_include_directories(redis_list PUBLIC "/usr/local/boost/include/boost")
#include<boost/include/boost/>
target_link_libraries(redis_list hiredis)
target_link_libraries(redis_list mysqlclient)


set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
